package com.baizhi.homework2;

/**
 * 鼠标
 */
public class Mouse implements USB{
    private String name;

    public Mouse() {
    }

    public Mouse(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    //鼠标点击的方法
    public void click() {
        System.out.println(name + "鼠标点击了小红心......");
    }

    //鼠标移动的方法
    public void move(){
        System.out.println(name + "鼠标拖动指针在屏幕上移动......");
    }

    @Override
    public void connect() {
        System.out.println( name + "鼠标成功连接了设备~~~~~");
    }

    @Override
    public void unconnect() {
        System.out.println( name + "鼠标安全弹出了设备~~~~~");
    }
}
